import 'package:fish_redux/fish_redux.dart';

import 'action.dart';
import 'state.dart';

Reducer<VillageAcceessCardState> buildReducer() {
  return asReducer(
    <Object, Reducer<VillageAcceessCardState>>{
      VillageAcceessCardAction.action: _onAction,
      VillageAcceessCardAction.refresh: _onAction,
    },
  );
}

VillageAcceessCardState _onAction(
    VillageAcceessCardState state, Action action) {
  final VillageAcceessCardState newState = state.clone();
  return newState;
}
